﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Com.Library.DB.Board;
using System.Collections;
using System.Web.Script.Serialization;

using Com.Framework;

namespace Com.Web.coffinegurunaru.manager.board
{
	public partial class BoardList : System.Web.UI.UserControl
	{
		public List<BoardEntity> List { get; set; }
		protected void Page_Load(object sender, EventArgs e)
		{

		}

		protected string GetJsonDataNames(string jsonData)
		{
			if (string.IsNullOrEmpty(jsonData))
			{
				return string.Empty;
			}
			ArrayList list = (new JavaScriptSerializer()).Deserialize<ArrayList>(jsonData);

			string[] names = new string[list.Count];

			for (int idx = 0; idx < list.Count; idx++)
			{
				names[idx] = list[idx].Parse(string.Empty);
			}

			return string.Join(",", names);
		}
	}
}